package com.ssrs.batch.service;

import com.ssrs.batch.core.callback.BatchJobCallback;
import com.ssrs.batch.core.exception.BatchServiceException;

import java.util.Map;

/**
 * Batch任务创建接口
 *
 * @author ssrs
 */
public interface IBatchCreateReconcileService {

    public boolean run(String jobName, Map<String, Object> params) throws BatchServiceException;

    public boolean run(String jobName, Map<String, Object> params, BatchJobCallback callback) throws BatchServiceException;

    public boolean run(String jobName, Map<String, Object> params, boolean isUseThreadPool) throws BatchServiceException;

    public boolean run(String jobName, Map<String, Object> params, boolean isUseThreadPool, BatchJobCallback callback) throws BatchServiceException;
}
